I saw someone ask this question in August of last year, so I will ask it again hoping a solution has been created. If someone were to click on one of my external links, I don’t want them to see the exit message. Is there a way to cancel the exit message when a viewer clicks on my external links?
I test in Firefox and it works fine. The problem is that the message display is a non-standard feature so it will not show in all browsers. I can’t get around that because it is a browser problem, not a programming one.
@chris
You could use an overlay that loads the external opt-in form in an iframe, that way the people never leave your website. This one could do it: https://wordpress.org/plugins/easy-fancybox/screenshots/ but I am sure there are a more plugins like it with different looks etc.
I do not want the plugin to activate when someone clicks and external link on my site only when they try to close the page.
Is there a way to do that? I have a opt in form that is not hosted on my site so when people try to click on it they get the exit message. I do not want that.
You can’t change the text. The message comes from the browser. Older versions of IE allowed you to change the text, but I am not sure that it still works.
Thanks for the excellent plugin!
I’m having a problem with it though…
When I’m logged into my WP admin area and I view the site, then try exiting, the page I specified is displayed, but when I log out and visit my site and try to exit, the browser just closes and does not display the proper page, as it did when I was logged in.
Any thoughts?
Thanks in advance for your help.
I hope it does what I think it does – kill my bounce rate. Most people come from a search to exactly the page/information they were looking for, so they leave when done reading, resulting in a terrible bounce rate that does not reflect the usefulness of my site at all.
I ahve an idea for the next version:
Add the ability to set a specific URL in an custom field of a post of page, so that each can have their individual page loading in the background.
For me it would make sense, as I could create a page with related content to the post, thus offering something the visitor may find interesting enough to stay after all…
Hello Kieth,
I’ve come to a roadblock on something with your plugin. I’ve been googling trying to find a code that I can add to the plugin that creates a cookie on the user’s computer that expires after 15 days so that the exit plugin will be deactivated for returning visitors. I’ve had no luck so, I’m coming to you since you told us about adding the “if (!is_front_page()) return; ” code that only activates the plugin for the homepage(which works great for my site) I figured you might help me with this as well perhaps? If necessary, I’m willing to make a donation of sorts for your help. Thank you for your time and I look forward to your reply!
Hey,
I’m loving the plugin – it does what it’s suppose to… But I was wondering if you can make 1 modification, or at least guide me on how to do it?
when someone presses the Back button, the pop up comes up… even if they’re staying on my domain. Is it possible to only have it pop up once the domain is changed entire? for example, if they are on https://myhomefinder.ca/i-am-a-buyer and press the back button, going back to https://myhomefinder.ca, it shouldn’t pop up… but if they go from myhomefinder.ca to google.com for example, then it should pop up… same deal with when closing the browser…
Cool plugin! Is there a way to change/customize the popup message: “This page is asking you to confirm that you want to leave – data you have entered may not be saved.”
Plug in work well on my site, but I only want it to function on the first page, which is the optin page, any instructions so its not active on each and every page?
HOW DO WE UNINSTALL IT? it is still there even when it’s deactivated. I want to completely remove it from my wordpress, It is essential that I remove it. even the modifications don’t work
Yes it is a problem. The plugin works for about 80% of all users. Chrome will not allow this kind of plugin to work. There is nothing that I can do about it.
Chrome could be thought of as being used by more sophisticated users, much as firefox was a few years ago. They are less like to be influenced by this kind of advertising in any case.
Chrome will not work, so I ignore Chrome. This is an issue with the browser.
Firefox will not display the correct message. This is a problem with the browser.
IE shows the page and the message correctly.
The function that triggers the exit message is a Microsoft extension and browsers do not all support it the same way. Chrome does not allow me to show a different page in the background. I chose not to implement on chrome because of this.
The current beta available here has a way for disabling specific pages. I do not have a method for disabling on just some links.
Keith
I saw someone ask this question in August of last year, so I will ask it again hoping a solution has been created. If someone were to click on one of my external links, I don’t want them to see the exit message. Is there a way to cancel the exit message when a viewer clicks on my external links?
I test in Firefox and it works fine. The problem is that the message display is a non-standard feature so it will not show in all browsers. I can’t get around that because it is a browser problem, not a programming one.
Keith
Do we have an alternative plugin which has the same features but works in Chrome, Firefox and IE ?
Download the beta version here and read the readme. You have to add a short javascript snippet on the pages you want to disable the plugin.
Keith
Can I get this plugin to work for only certain pages, rather than for every page on the entire site?
@chris
You could use an overlay that loads the external opt-in form in an iframe, that way the people never leave your website. This one could do it: https://wordpress.org/plugins/easy-fancybox/screenshots/ but I am sure there are a more plugins like it with different looks etc.
There is no way that I know.
Keith
I do not want the plugin to activate when someone clicks and external link on my site only when they try to close the page.
Is there a way to do that? I have a opt in form that is not hosted on my site so when people try to click on it they get the exit message. I do not want that.
could i get a link to an older version that allows to change the text but still works great? thanks a bunch
You can’t change the text. The message comes from the browser. Older versions of IE allowed you to change the text, but I am not sure that it still works.
Keith
hi, how do i change the text on the screen of the popup? i tried to edit html but i dont know how to do it right. thanks in advance
Hi,
I found bug on this row: $kpg_exit_msg=stripslashes(kpg_exit_msg);
missing $ before kpg_exit_msg
correct row : $kpg_exit_msg=stripslashes($kpg_exit_msg);
I released a new version a few minutes ago. I fixed up a few things, and when I tested it, it worked, even through I was logged off.
Keith
Hello Keith,
Thanks for the excellent plugin!
I’m having a problem with it though…
When I’m logged into my WP admin area and I view the site, then try exiting, the page I specified is displayed, but when I log out and visit my site and try to exit, the browser just closes and does not display the proper page, as it did when I was logged in.
Any thoughts?
Thanks in advance for your help.
All the best,
Demian V
Great Plugin!
I hope it does what I think it does – kill my bounce rate. Most people come from a search to exactly the page/information they were looking for, so they leave when done reading, resulting in a terrible bounce rate that does not reflect the usefulness of my site at all.
I ahve an idea for the next version:
Add the ability to set a specific URL in an custom field of a post of page, so that each can have their individual page loading in the background.
For me it would make sense, as I could create a page with related content to the post, thus offering something the visitor may find interesting enough to stay after all…
Yes, only IE lets you set a message.
Keith
Firefox will not display the correct message. This is a problem with the browser
Hello Kieth,
I’ve come to a roadblock on something with your plugin. I’ve been googling trying to find a code that I can add to the plugin that creates a cookie on the user’s computer that expires after 15 days so that the exit plugin will be deactivated for returning visitors. I’ve had no luck so, I’m coming to you since you told us about adding the “if (!is_front_page()) return; ” code that only activates the plugin for the homepage(which works great for my site) I figured you might help me with this as well perhaps? If necessary, I’m willing to make a donation of sorts for your help. Thank you for your time and I look forward to your reply!
Hey,
I’m loving the plugin – it does what it’s suppose to… But I was wondering if you can make 1 modification, or at least guide me on how to do it?
when someone presses the Back button, the pop up comes up… even if they’re staying on my domain. Is it possible to only have it pop up once the domain is changed entire? for example, if they are on https://myhomefinder.ca/i-am-a-buyer and press the back button, going back to https://myhomefinder.ca, it shouldn’t pop up… but if they go from myhomefinder.ca to google.com for example, then it should pop up… same deal with when closing the browser…
thanks in advance,
vahab
In some browsers you can change it. In others, it ignores the changes and displays the message that you are seeing.
Keith
Cool plugin! Is there a way to change/customize the popup message: “This page is asking you to confirm that you want to leave – data you have entered may not be saved.”
Near the top of the plugin after the kpg_exit_screen_fixup() funtion add:
if (!is_front_page()) return;
This will exit the plugin if it is not the front page.
I’ll add this to the next release as an option.
Keith
Plug in work well on my site, but I only want it to function on the first page, which is the optin page, any instructions so its not active on each and every page?
Thanks
Just uninstall it from the plugin admin. If you have a cache in place you need to rebuild the cache.
Keith
HOW DO WE UNINSTALL IT? it is still there even when it’s deactivated. I want to completely remove it from my wordpress, It is essential that I remove it. even the modifications don’t work
Yes it is a problem. The plugin works for about 80% of all users. Chrome will not allow this kind of plugin to work. There is nothing that I can do about it.
Chrome could be thought of as being used by more sophisticated users, much as firefox was a few years ago. They are less like to be influenced by this kind of advertising in any case.
Keith
Chrome will not work, so I ignore Chrome. This is an issue with the browser.
Firefox will not display the correct message. This is a problem with the browser.
IE shows the page and the message correctly.
The function that triggers the exit message is a Microsoft extension and browsers do not all support it the same way. Chrome does not allow me to show a different page in the background. I chose not to implement on chrome because of this.
Keith
The plugin is not working at all with chrome!!
With other browsers is not loading the correct message